package com.yshkj.payment.controller;

import com.yshkj.payment.dto.InitDto;
import com.yshkj.payment.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 唐旭 on 2016/10/20.
 */
@RestController
@RequestMapping("/init")
public class InitController {

    @Autowired
    private SystemService systemService;

    @RequestMapping
    public InitDto init() {
        return systemService.initData();
    }
}
